package bookmanagement.operation.impl;

import bookmanagement.book.BookList;
import bookmanagement.operation.IOperation;

// 删除操作
public class DelOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("您正在进行书籍的下架操作");
        System.out.println("请输入要下架的书籍名称:");
        String booksName = scanner.next();
        if (bookList.removeBooks(booksName)) {
            System.out.println("下架书籍成功~");
        }else {
            System.err.println("下架书籍失败，请检查输入后再试");
        }
    }
}
